<?php 
/**
* @author Oliver Leisalu, Inditel Meedia
* @package DomFg
* @subpackage Input
*/
class DomFgMp3Player extends DomFgComponent {
	
	protected $mp3;
	
	protected $key;
	
	public function __construct( $mp3 = NULL ) {
		$this->mp3( $mp3 );
		$this->key = 'i'.mt_rand(100000000,99999999999);
	}
	
	public function mp3( $mp3 ) {
		$this->mp3 = $mp3;
		return $this;
	}
	
	public function render() {
		$renderer = $this->getRenderer();
		$renderer->assign('cell', $this );
		return $renderer->fetch('Cells/Mp3Player.html');
	}
	

}
?>